package bean;

import java.io.Serializable;

//客户端数据包
//类的序列化由实现java.io.Serializable接口的类启用,不实现此接口的类将不会使任何状态序列化或反序列化
//在服务器和客户端中以整个类的方式传输
@SuppressWarnings("serial")
public class ClientBean implements Serializable {
	//指令类型
	private int type;
	//发送信息时间
	private String timer;
	//发送命令的路灯id
	private String lightId;
	//路灯状态，true为打开状态
	private boolean state;
	//路灯感知的温度
	private int tem;
	//路灯感知的湿度
	private int hum;
	//路灯感知的环境照度
	private int light;

	public String getLightId() {
		return lightId;
	}

	public void setLightId(String lightId) {
		this.lightId = lightId;
	}

	public boolean getState() {
		return state;
	}

	public void setState(boolean state) {
		this.state = state;
	}

	public int getTem() {
		return tem;
	}

	public void setTem(int tem) {
		this.tem = tem;
	}

	public int getHum() {
		return hum;
	}

	public void setHum(int hum) {
		this.hum = hum;
	}

	public int getLight() {
		return light;
	}

	public void setLight(int light) {
		this.light = light;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getTimer() {
		return timer;
	}

	public void setTimer(String timer) {
		this.timer = timer;
	}
}
